package com.may.wind.dao;

import com.may.wind.entity.Menu;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MenuRepository extends JpaRepository<Menu, Long> {
    Menu findByName(String name);

    Menu findById(long id);

    List<Menu> findAllByParentId(long parentId);
}
